package com.hnhs.mapper;

import com.hnhs.model.Category;
import com.hnhs.model.CategoryQuery;
import com.hnhs.model.Product;
import com.hnhs.model.ProductQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {

    List<Category> select(CategoryQuery query);
    int insert(Category category);
    int update(Category category);
    int updateStatus(@Param("id") Integer id, @Param("status") Integer status);
}
